package com.snail.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.snail.model.pojo.user.SysPermission;
import com.snail.model.vo.user.MenuVO;


import java.util.List;

/**
* @author 21116
* @description 针对表【sys_permission(系统权限表)】的数据库操作Service
* @createDate 2025-08-12 11:59:08
*/
public interface SysPermissionService extends IService<SysPermission> {

    /**
     * 根据用户ID获取菜单树
     *
     * @param userId 用户ID
     * @return
     */
    List<SysPermission> getUserMenuTree(Long userId);

    /**
     * 删除菜单的同时删除角色对应的菜单权限
     */
    void deleteMenuAndRolePermission(Long id);
}